<?php
namespace Imi\Server\Route\Annotation;

use Imi\Bean\Annotation\Base;
use Imi\Bean\Annotation\Parser;

/**
 * 中间件注解
 * @Annotation
 * @Target({"CLASS","METHOD"})
 * @Parser("Imi\Server\Route\Parser\ControllerParser")
 */
class Middleware extends Base
{
	/**
	 * 只传一个参数时的参数名
	 * @var string
	 */
	protected $defaultFieldName = 'middlewares';

	/**
	 * 中间件类或数组
	 * @var string|string[]
	 */
	public $middlewares;
}